#if !defined(DEFINES_H)
#define DEFINES_H

namespace gunsmith
{
// IUnknown->Release() macro
#define RELEASE(p) {if(p){p->Release();}p = NULL;}

// ERROR MESSAGES and ERROR CAPTION
#define ERRMSG_CANT_CREATE_WINDOW	"Can\'t create main window."
#define	ERRCAP_CANT_CREATE_WINDOW	"Init Error"
#define ERRMSG_CANT_CREATE_DEVICE	"Can\'t create DirectX device."
#define ERRCAP_CANT_CREATE_DEVICE	"DirectX Init Error"
#define ERRMSG_LOADING_MODEL		"Loading model failed."
#define ERRCAP_LOADING_MODEL		"Data Error"
};

#endif // DEFINES_H